package com.shbt.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * TReleaseSellComment entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "t_release_sell_comment", catalog = "default_schema")
public class TReleaseSellComment implements java.io.Serializable {

	// Fields

	private Integer id;
	private TReleaseSell TReleaseSell;
	private String releaseSellCode;
	private String commentContent;
	private String photo;

	// Constructors

	/** default constructor */
	public TReleaseSellComment() {
	}

	/** minimal constructor */
	public TReleaseSellComment(Integer id, TReleaseSell TReleaseSell) {
		this.id = id;
		this.TReleaseSell = TReleaseSell;
	}

	/** full constructor */
	public TReleaseSellComment(Integer id, TReleaseSell TReleaseSell,
			String releaseSellCode, String commentContent, String photo) {
		this.id = id;
		this.TReleaseSell = TReleaseSell;
		this.releaseSellCode = releaseSellCode;
		this.commentContent = commentContent;
		this.photo = photo;
	}

	// Property accessors
	@Id
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "t_release_sell_id", nullable = false)
	public TReleaseSell getTReleaseSell() {
		return this.TReleaseSell;
	}

	public void setTReleaseSell(TReleaseSell TReleaseSell) {
		this.TReleaseSell = TReleaseSell;
	}

	@Column(name = "release_sell_code", length = 20)
	public String getReleaseSellCode() {
		return this.releaseSellCode;
	}

	public void setReleaseSellCode(String releaseSellCode) {
		this.releaseSellCode = releaseSellCode;
	}

	@Column(name = "comment_content", length = 65535)
	public String getCommentContent() {
		return this.commentContent;
	}

	public void setCommentContent(String commentContent) {
		this.commentContent = commentContent;
	}

	@Column(name = "photo", length = 100)
	public String getPhoto() {
		return this.photo;
	}

	public void setPhoto(String photo) {
		this.photo = photo;
	}

}